package edu.zut.hb.ambition.drugstore.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import edu.zut.hb.ambition.base.domain.Column;

import edu.zut.hb.ambition.base.domain.BaseEntity;
public class Drugstore extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @Column(name = "rugstoreid")
    private String rugstoreid;

    @Column(name = "drugstorename")
    private String drugstorename;

    @Column(name = "supplier")
    private String supplier;

    @Column(name = "skull")
    private String skull;

    @Column(name = "warehouseid")
    private Long warehouseid;

    @Column(name = "unit")
    private String unit;

    @Column(name = "tradeprice")
    private BigDecimal tradeprice;

    @Column(name = "sellingprice")
    private BigDecimal sellingprice;

    @Column(name = "area")
    private String area;


    @Column(name = "type")
    private String type;


    @JsonFormat(pattern = "yyyy-MM-dd")
    @Column(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date producedate;


    @JsonFormat(pattern = "yyyy-MM-dd")
    @Column(name = "validdate", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validdate;


    @Column(name = "drugstorenum")
    private Long drugstorenum;


    @Column(name = "batch")
    private String batch;

    public void setRugstoreid(Long rugstoreid) 
    {
        this.rugstoreid = rugstoreid;
    }

    public Long getRugstoreid() 
    {
        return rugstoreid;
    }
    public void setDrugstorename(String drugstorename) 
    {
        this.drugstorename = drugstorename;
    }

    public String getDrugstorename() 
    {
        return drugstorename;
    }
    public void setSupplier(String supplier) 
    {
        this.supplier = supplier;
    }

    public String getSupplier() 
    {
        return supplier;
    }
    public void setSkull(String skull) 
    {
        this.skull = skull;
    }

    public String getSkull() 
    {
        return skull;
    }
    public void setWarehouseid(Long warehouseid) 
    {
        this.warehouseid = warehouseid;
    }

    public Long getWarehouseid() 
    {
        return warehouseid;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setTradeprice(BigDecimal tradeprice) 
    {
        this.tradeprice = tradeprice;
    }

    public BigDecimal getTradeprice() 
    {
        return tradeprice;
    }
    public void setSellingprice(BigDecimal sellingprice) 
    {
        this.sellingprice = sellingprice;
    }

    public BigDecimal getSellingprice() 
    {
        return sellingprice;
    }
    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setProducedate(Date producedate) 
    {
        this.producedate = producedate;
    }

    public Date getProducedate() 
    {
        return producedate;
    }
    public void setValiddate(Date validdate) 
    {
        this.validdate = validdate;
    }

    public Date getValiddate() 
    {
        return validdate;
    }
    public void setDrugstorenum(Long drugstorenum) 
    {
        this.drugstorenum = drugstorenum;
    }

    public Long getDrugstorenum() 
    {
        return drugstorenum;
    }
    public void setBatch(String batch) 
    {
        this.batch = batch;
    }

    public String getBatch() 
    {
        return batch;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rugstoreid", getRugstoreid())
            .append("drugstorename", getDrugstorename())
            .append("supplier", getSupplier())
            .append("skull", getSkull())
            .append("warehouseid", getWarehouseid())
            .append("unit", getUnit())
            .append("tradeprice", getTradeprice())
            .append("sellingprice", getSellingprice())
            .append("area", getArea())
            .append("type", getType())
            .append("producedate", getProducedate())
            .append("validdate", getValiddate())
            .append("drugstorenum", getDrugstorenum())
            .append("batch", getBatch())
            .toString();
    }
}
